﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MVC4App.Areas.Administrators.Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MVC4App;
using MVC4App.Controllers;

namespace MVC4App.Tests.Controllers
{
    [TestClass]
    public class HomeControllerTest
    {
        [TestMethod]
        public void Index()
        {
            // Arrange
            AdminController controller = new AdminController();

            // Act
            ViewResult result = controller.Index(int? siteId) as ViewResult;
            
            // Assert
            Assert.AreEqual("Modify this template to jump-start your ASP.NET MVC application.", result.ViewBag.Message);
        }
    }
}
